﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OF.Common
{
    /// <summary>
    /// 系统常用变量申明
    /// </summary>
    public class Enmus
    {
        public enum RETURN
        {
            /// <summary>
            /// 成功
            /// </summary>
            SUC,
            /// <summary>
            /// 失败
            /// </summary>
            FAIL,
            /// <summary>
            /// 无数据
            /// </summary>
            NULL,
            /// <summary>
            /// 错误
            /// </summary>
            ERROR,
            /// <summary>
            /// 不允许使用
            /// </summary>
            NOT_USE,
            /// <summary>
            /// 已经存在
            /// </summary>
            EXISTS
        }

        public enum ORDER_STATE
        {
            /// <summary>
            /// 买家提交订单
            /// </summary>
            INIT = 0,
            /// <summary>
            /// 商户确认处理状态
            /// </summary>
            CONFIRM_SUC = 1,
            /// <summary>
            /// 商户确认不处理状态
            /// </summary>
            CONFIRM_Fail = 2,
            /// <summary>
            /// 买家确认完成
            /// </summary>
            COMPLETE = 3,
            /// <summary>
            /// 买家取消
            /// </summary>
            CANCEL = 4,
            /// <summary>
            /// 订单失效
            /// </summary>
            INVALID = 5,
            /// <summary>
            /// 等待提交
            /// </summary>
            WAIT_SUBMIT = 6
        }

        public enum USER_STATE
        {
            /// <summary>
            /// 注册
            /// </summary>
            INIT,
            /// <summary>
            /// 完善信息并开店
            /// </summary>
            COMPLETE,
            /// <summary>
            /// 关闭店铺
            /// </summary>
            DELETE

        }

        public enum CACHE_TYPE
        {
            /// <summary>
            /// 区域
            /// </summary>
            C_AREA,
            /// <summary>
            /// 学校
            /// </summary>
            C_SCHOOL,
            /// <summary>
            /// 商家
            /// </summary>
            C_SELLER,
            /// <summary>
            /// 商家所属学校
            /// </summary>
            C_SELLERBELONG,
            /// <summary>
            /// 商家菜品
            /// </summary>
            C_DISH,
            /// <summary>
            /// 菜品类别
            /// </summary>
            C_DISHCAT
        }

        public enum SORT_TYPE
        {
            /// <summary>
            /// 【销量最大】;
            /// </summary>
            SALES_LARGEST,
            /// <summary>
            /// 【评价最好】
            /// </summary>
            EVALUATE_BEST,
            /// <summary>
            /// 【人均最低】
            /// </summary>
            PAY_LOW
        }
    }
}
